//
//  NoRecordsView.m
//  WCN
//
//  Created by 杨鑫 on 15/7/6.
//  Copyright (c) 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "NoRecordsView.h"
//
#import "Macros.h"

@implementation NoRecordsView

- (instancetype)init
{
    return [self initWithFrame:CGRectMake(0, 0, kScreenWidth, 180)];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self loadView];
    }
    return self;
}

- (void)loadView
{
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 107, 107)];
    imageView.center = CGPointMake(self.center.x, 80);
    imageView.image = [UIImage imageNamed:@"No_Records"];
    [self addSubview:imageView];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth-40, 30)];
    label.center = CGPointMake(self.center.x, 160);
    label.text = @"暂无相关记录";
    label.textColor = HexRGB(0x61606f);
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:15.0];
    [self addSubview:label];
}

@end
